/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.usc.ee.java;

/**
 *
 * @author zhouzhao
 */
public class via {

    private int id;
    private int x;
    private int y;
    private myColor color;

    private int center;
    private int north;
    private int south;
    private int east;
    private int west;

    private int weight;
    private int weightWave;
    private boolean update;

    public via(){
        
    }

    public via(int id, int x, int y){
        this.id = id;
        this.x = x;
        this.y = y;
        this.color = myColor.GREEN;

        this.center = 0;
        this.north = 0;
        this.south = 0;
        this.east = 0;
        this.west = 0;

        this.weight = 0;
        this.weightWave = 0;
        this.update = false;
    }

    public int getid(){
        return this.id;
    }
    
    public int getx(){
        return this.x;
    }
    
    public int gety(){
        return this.y;
    }

    public myColor getColor(){
        return this.color;
    }

    public void setColor(myColor color){
        this.color = color;
    }

    public int getCenter(){
        return this.center;
    }

    public void setCenter(int center){
        this.center = center;
    }

    public int getNorth(){
        return this.north;
    }

    public void setNorth(int north){
        this.north = north;
    }

    public int getSouth(){
        return this.south;
    }

    public void setSouth(int south){
        this.south = south;
    }

    public int getEast(){
        return this.east;
    }

    public void setEast(int east){
        this.east = east;
    }

    public int getWest(){
        return this.west;
    }

    public void setWest(int west){
        this.west = west;
    }

    public int getWeight(){
        return this.weight;
    }

    public void setWeight(int weight){
        this.weight = weight;
    }

    public int getWeightWave(){
        return this.weightWave;
    }

    public void setWeightWave(int weightWave){
        this.weightWave = weightWave;
    }

    public boolean getUpdate(){
        return this.update;
    }

    public void setUpdate(boolean update){
        this.update = update;
    }

    @Override
    public String toString(){
        return "Via"+id+"("+x+","+y+")";
    }


}
